<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="https://getbootstrap.com/docs/4.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <link rel="stylesheet" href="http://www.jq22.com/demo/bootstrap-table-141124161539/css/bootstrap-table.min.css">
    <title>index</title>
</head>
<body>

<table class="table">
    <thead class="table table-striped">
    <tr>
        <th scope="col">Key</th>
        <th scope="col">Value</th>
        <th scope="col">Operation</th>
    </tr>
    </thead>
    <tbody>
{{range $k, $v := .}}
    <tr>
        <th scope="row"><a href="/add?key={{$k}}">{{$k}}</a></th>
        <td>{{$v}}</td>
        <td>
            <a class="btn btn-danger btn-del btn-del" href="/delete?key={{$k}}">
                <i class="fa fa-remove"></i> 删除
            </a>
        </td>
    </tr>
{{end}}
    </tbody>
</table>

<a class="btn btn-success" href="/add"><i class="fa fa-plus"></i> 添加</a>

</body>
</html>